home *** CD-ROM | disk | FTP | other *** search
- //this is run when the escape key is pressed
-
- void main(void)
- {
- Playsound(18, 22050, 0,0,0);
- freeze(1);
- help:
- choice_start();
- "Load a previously saved game"
- "Restart"
- "Quit to Windows"
- "Help"
- "Continue"
- choice_end();
-
-
- if (&result == 1)
- {
- choice_start();
- "&savegameinfo"
- "&savegameinfo"
- "&savegameinfo"
- "&savegameinfo"
- "&savegameinfo"
- "&savegameinfo"
- "&savegameinfo"
- "&savegameinfo"
- "&savegameinfo"
- "&savegameinfo"
- "Nevermind"
- choice_end();
- if (&result == 11) goto help;
-
- if (game_exist(&result) == 0)
- {
- unfreeze(1);
- wait(2000);
- Say("Wow, this loaded game looks so familiar.", 1);
- kill_this_task();
- return;
- }
- unfreeze(1);
- load_game(&result);
- &update_status = 1;
- draw_status();
-
- kill_this_task();
- }
-
-
-
-
- if (&result == 3)
- {
- choice_start();
- "Yes, I really want to quit the game"
- "I was just kidding, back to the action, please"
- choice_end();
- if (&result == 2)
- {
- wait(300);
- say("Phew, that was a close one!",1);
- }
- if (&result == 1)
- {
- kill_game();
- }
- unfreeze(1);
- kill_this_task();
- }
-
- if (&result == 4)
- {
- helpstart:
- choice_start();
- set_y 240
- title_start();
-
-
-
-
- What would you like help on?
- title_end();
- "Keyboard commands"
- "How to save the game"
- "Done"
- choice_end();
- Debug("Ok, result is &result");
-
- if (&result == 1)
- {
- choice_start();
- set_y 240
- title_start();
- Ctrl = Attack/choose
- Space = Talk/examine/skip text
- Shift = Magic
- Enter = Item/magic equip screen
-
- Use the arrow keys to move. Joystick and control pad are also supported.
- title_end();
- "Ok"
- choice_end();
- goto helpstart;
- }
-
- if (&result == 2)
- {
- choice_start();
- set_y 240
- title_start();
- In this quest, saving your game can
- only be done at the special 'Save
- Machine'. (it hums strangely)
-
- When you find one, it's location
- will be added to your map.
- title_end();
- "Ok"
- choice_end();
- goto helpstart;
- }
-
-
- if (&result == 3)
- {
- goto help;
- }
-
-
- }
-
-
- if (&result == 2)
- {
- choice_start();
- "Yes, I really want to restart from scratch"
- "No, go back!"
- choice_end();
- if (&result == 2)
- {
- goto help;
- }
- if (&result == 1)
- {
- unfreeze(1);
- restart_game();
- kill_this_task();
- }
- unfreeze(1);
- kill_this_task();
- }
-
-
-
- unfreeze(1);
- kill_this_task();
- }
-